package com.gome.ocean.service.gddl;

import java.util.List;

import com.github.pagehelper.Page;
import com.gome.ocean.common.exception.AppServiceException;
import com.gome.ocean.dao.model.gddl.AppBO;

public interface AppService {

    public boolean insertAppBO(AppBO appBO);

    public boolean removeAppBOById(Long id);

    public boolean updateAppBO(AppBO appBO);

    public AppBO findAppBOById(Long id);

    public Page<AppBO> findAllApps(int pageNum, int pageSize);

    public List<AppBO> findAllApps();

    public Page<AppBO> findAllAppsByProjectNames(int pageNum, int pageSize,
                                                 List<String> projectNames) throws AppServiceException;

    public AppBO findAppBOByAppName(String appName);
    
    public List<AppBO> findAppBOsByAppName(String appName);
}
